package fr.umlv.m2.jee.portailEtudiant.service.ldap.authentification;

import java.util.List;

import org.springframework.context.annotation.Scope;
import org.springframework.security.userdetails.ldap.LdapUserDetailsImpl;
import org.springframework.stereotype.Service;

@Service("ldapSampleUserDetails")
@Scope("session")
public class DefaultOrap2UserDetails extends LdapUserDetailsImpl implements LdapSampleUserDetails {
    private String dn;
    private String username;

    private boolean teacher;
    private boolean student;

    @Override
    public boolean isStudent() {
        return student;
    }

    @Override
    public void setStudent(boolean student) {
        this.student = student;
    }

    @Override
    public boolean isTeacher() {
        return teacher;
    }

    @Override
    public void setTeacher(boolean teacher) {
        this.teacher = teacher;
    }

    @Override
    public String getDn() {
        return dn;
    }

    @Override
    public void setDn(String dn) {
        this.dn = dn;
    }

    @Override
    public String getUsername() {
        return username;
    }

    @Override
    public void setUsername(String username) {
        this.username = username;
    }
}
